<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增总账号信息')" />
    <th:block th:include="include :: select2-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-info-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">账户名称：</label>
                <div class="col-sm-8">
                    <input name="name" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">账户类型：</label>
                <div class="col-sm-8">
                    <select name="type"  class="form-control">
                        <option value="WX" >微信</option>
                        <option value="ZFB" >支付宝</option>
                        <option value="BK" >银行卡</option>
                    </select>
                </div>
            </div>

<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label is-required">微信用户ID：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <select name="weixinUserid"  class="form-control">-->
<!--                        <option th:each="item:${wxUserIdList}" th:value="${item.id}" th:text="${item.name}" ></option>-->
<!--                    </select>-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">账号姓名：</label>
                <div class="col-sm-8">
                    <select name="weixinUserid"  class="form-control">
                        <option th:each="item:${wxUserIdList}" th:value="${item.id}" th:text="${item.name}" ></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">账号编号：</label>
                <div class="col-sm-8">
                    <input name="accountNo" class="form-control" type="text" required>
                    <small class="form-text text-muted">例:银行卡号、支付宝账号、手机号</small>
                </div>
            </div>

            <!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">账号图片信息：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="accountImg" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">账号信息备注：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="accountRemark" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label is-required">手机号：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="mobile" class="form-control" type="text" required>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">邮箱：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="email" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label is-required">可用余额：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="availableAmount" class="form-control" type="text" required>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label is-required">总余额：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="totalAmount" class="form-control" type="text" required>-->
<!--                </div>-->
<!--            </div>-->
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: select2-js" />
    <script th:inline="javascript">
        var prefix = ctx + "account/info"
        $("#form-info-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-info-add').serialize());
            }
        }
    </script>
</body>
</html>